package com.example.springboot2.oa.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.springboot2.oa.entity.TCustomer;
import com.example.springboot2.oa.entity.TDepartment;
import com.example.springboot2.oa.entity.TStudent;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author llfy
 * @since 2018-11-23
 */
public interface TCustomerMapper extends BaseMapper<TCustomer> {


    TCustomer getCustomerByCno(TCustomer customer);

    TCustomer getCustomer(TCustomer user);

    TCustomer getCustomerByNameAndId(TCustomer customer);

    List<TCustomer> listCustomer(@Param("cname") String name);
}
